package com.itheima.day03;

public class Demo01_02 {
    public static void main(String[] args) {
        double fatherHeight = 177.0;
        double motherHeight = 165.0;
        double sonHeight = (fatherHeight + motherHeight) * 1.08 / 2;
        double daughterheight = (fatherHeight * 0.923 + motherHeight) / 2;
        System.out.println("现有父亲身高177CM,母亲身高165CM。儿子身高:"
                + sonHeight + "女儿身高（厘米）:" + daughterheight);
    }
}
